package edu.sctu.xuping.month05.day20150508;

/**
 * Created by Administrator on 2015/5/8/0008.
 */
public class TextTwo {
    public TextThree textthree = new TextThree();
    // public int number = 100;
    int sum;

    public int setPage(TextOne textone) {
        for (int i = 0; i <= textone.num; i++) {
            sum += i;
        }
        System.out.println(sum);
        return sum;
    }
}